import request from '@/utils/request'

/**
 * 获取日志信息列表
 */
export function getBuyList(data) {
  return request({
    url: '/Order/GetBuyRecordList',
    method: 'post',
    data
  })
}

export function changeBuyStatus(id) {
  return request({
    url: '/Order/changeBuyStatus?id='+id,
    method: 'get'
  })
}

export function getOrderDetailByOrderNo(orderno) {
  return request({
    url: '/Order/getOrderDetailByOrderNo?orderno='+orderno,
    method: 'get'
  })
}

//删除订单
export function DeleteOrderInfo(orderno) {
  return request({
    url: '/Order/DeleteOrderInfo?orderId='+orderno,
    method: 'get'
  })
}
